package com.yangye.pilog.domain;

import com.yangye.picommon.core.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "sys_log")
@Data
public class SysLog extends BaseEntity {
    /**
     * 用户名
     */
    private String username;

    /**
     * ip地址
     */
    private String ip;

    /**
     * ip地址来源
     */
    @Column(name = "ip_from")
    private String ipFrom;

    /**
     * 方法名称
     */
    @Column(name = "method_name")
    private String methodName;

    /**
     * 日志类型
     */
    private String type;

    /**
     * 耗时
     */
    private Long time;

    /**
     * 访问参数
     */
    private String param;

    /**
     * 异常详情
     */
    @Column(name = "exception_detail")
    private String exceptionDetail;
}